package club.zhilin.guli.service.edu.mapper;

import club.zhilin.guli.service.edu.domain.Subject;
import club.zhilin.guli.service.edu.domain.vo.SubjectVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 课程科目 Mapper 接口
 * </p>
 *
 * @author zhilin
 * @since 2022-01-11 15:29:01
 */
public interface SubjectMapper extends BaseMapper<Subject> {

    /**
     * 查询嵌套列表
     *
     * @param parentId 父节点id
     * @return list
     */
    List<SubjectVO> selectNestedList(String parentId);
}
